package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IPushDao;
import com.guoxue.domain.PushVo;
import com.guoxue.service.IPushService;
@Service
public class PushServiceImpl implements IPushService{
	
	@Resource
	private IPushDao  pushDao;
	
	@Override
	public void savePush(PushVo push) {
		pushDao.savePush(push);
	}

	@Override
	public List<PushVo> getPushList() {
		return pushDao.getPushList();
	}

	@Override
	public PushVo getPush(int id) {
		return pushDao.getPush(id);
	}

	@Override
	public void deletePush(Integer id) {
		pushDao.deletePush(id);
	}

	@Override
	public List<PushVo> getLastPushList() {
		return pushDao.getLastPushList();
	}

}
